import '@/assets/style/main.scss';
import { setupStore } from '@/state';
import 'uno.css';
import uviewPlus from 'uview-plus';
import { createSSRApp } from 'vue';
import App from './App.vue';
import directives from './directives';

// #ifdef VUE3
export function createApp() {
  const app = createSSRApp(App);
  app.use(uviewPlus);
  // #ifndef MP-WEIXIN
  directives(app);
  // #endif
  // Configure store
  setupStore(app);

  return {
    app,
  };
}
// #endif
